using AjeeleeCms.Web.Plugin.Link.BLL;
using AjeeleeCms.Web.UI;
using System;
using System.Data;
namespace AjeeleeCms.Web.Plugin.Link
{
	public class link : BasePage
	{
		protected override void ShowPage()
		{
		}
		public DataTable get_link_list(int top, string strwhere)
		{
			DataTable dataTable = new DataTable();
			string text = "is_lock=0";
			if (!string.IsNullOrEmpty(strwhere))
			{
				text = text + " and " + strwhere;
			}
			return new AjeeleeCms.Web.Plugin.Link.BLL.link().GetList(top, text).Tables[0];
		}
		public DataTable get_link_list(int page_size, int page_index, string strwhere, out int totalcount)
		{
			DataTable dataTable = new DataTable();
			string text = "is_lock=0";
			if (!string.IsNullOrEmpty(strwhere))
			{
				text = text + " and " + strwhere;
			}
			return new AjeeleeCms.Web.Plugin.Link.BLL.link().GetList(page_size, page_index, text, "sort_id asc,add_time desc", out totalcount).Tables[0];
		}
	}
}
